package com.atguigu.service.impl;

import com.atguigu.dao.OrderItemDao;
import com.atguigu.dao.impl.OrderItemDaoImpl;
import com.atguigu.pojo.Order;
import com.atguigu.pojo.OrderItem;
import com.atguigu.service.OrderItemService;

import java.util.List;

public class OrderItemServiceImpl implements OrderItemService {

    OrderItemDao orderItemDao = new OrderItemDaoImpl();

    @Override
    public void saveOrderItem(OrderItem orderItem) {
        orderItemDao.saveOrderItem(orderItem);
    }

    @Override
    public void deleteOrderItemById(String order_id) {
        orderItemDao.deleteOrderItemById(order_id);
    }
}
